package com.runa.monitor.platinterface.netservice.connect;

import com.runa.protocol.dto.IResponseData;

/**
 * @author zhuj
 */
public class GeneralResponse implements IResponse<IResponseData> {

    private IRequest request;

    private IResponseData responseData;

    public GeneralResponse(IRequest request) {
        this.request = request;
    }

    @Override
    public IResponseData getResponseData() {
        return responseData;
    }

    @Override
    public void setResponseData(IResponseData data) {
        this.responseData = data;
    }

    @Override
    public void doReceive() {
        ((GeneralRequest)request).setReady(true);
    }
}
